<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>NGUI: Next-Gen UI kit: UIGrid Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI: Next-Gen UI kit
   &#160;<span id="projectnumber">3.7.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_u_i_grid.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_u_i_grid-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UIGrid Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>All children added to the game object with this script will be repositioned to be on a grid of specified dimensions. If you want the cells to automatically set their scale based on the dimensions of their content, take a look at <a class="el" href="class_u_i_table.html" title="All children added to the game object with this script will be arranged into a table with rows and co...">UITable</a>.  
 <a href="class_u_i_grid.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for UIGrid:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_u_i_grid.png" usemap="#UIGrid_map" alt=""/>
  <map id="UIGrid_map" name="UIGrid_map">
<area href="class_u_i_widget_container.html" title="Widget container is a generic type class that acts like a non-resizeable widget when selecting things..." alt="UIWidgetContainer" shape="rect" coords="0,56,116,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3b71e32581492ef6f5a1bd7e34e46b24"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a3b71e32581492ef6f5a1bd7e34e46b24">Arrangement</a> { <a class="el" href="class_u_i_grid.html#a3b71e32581492ef6f5a1bd7e34e46b24ac1b5fa03ecdb95d4a45dd1c40b02527f">Arrangement.Horizontal</a>, 
<a class="el" href="class_u_i_grid.html#a3b71e32581492ef6f5a1bd7e34e46b24a06ce2a25e5d12c166a36f654dbea6012">Arrangement.Vertical</a>
 }</td></tr>
<tr class="separator:a3b71e32581492ef6f5a1bd7e34e46b24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c51989159e70c9606e2191c70e4796"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796">Sorting</a> { <br />
&#160;&#160;<a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796a6adf97f83acf6453d4a6a4b1070f3754">Sorting.None</a>, 
<a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796ae126411ef594e6c55711275a03d03ea2">Sorting.Alphabetic</a>, 
<a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796ac1b5fa03ecdb95d4a45dd1c40b02527f">Sorting.Horizontal</a>, 
<a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796a06ce2a25e5d12c166a36f654dbea6012">Sorting.Vertical</a>, 
<br />
&#160;&#160;<a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796a90589c47f06eb971d548591f23c285af">Sorting.Custom</a>
<br />
 }</td></tr>
<tr class="separator:ac8c51989159e70c9606e2191c70e4796"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afd5f67e31f55ade10f2672e21db6e29d"><td class="memItemLeft" align="right" valign="top">delegate void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#afd5f67e31f55ade10f2672e21db6e29d">OnReposition</a> ()</td></tr>
<tr class="separator:afd5f67e31f55ade10f2672e21db6e29d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2443158a661536abc8120f6cfd920884"><td class="memItemLeft" align="right" valign="top">List&lt; Transform &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884">GetChildList</a> ()</td></tr>
<tr class="memdesc:a2443158a661536abc8120f6cfd920884"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current list of the grid's children.  <a href="#a2443158a661536abc8120f6cfd920884">More...</a><br /></td></tr>
<tr class="separator:a2443158a661536abc8120f6cfd920884"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab97d83e7b02ae3da2ce2b862d4e59820"><td class="memItemLeft" align="right" valign="top">Transform&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#ab97d83e7b02ae3da2ce2b862d4e59820">GetChild</a> (int index)</td></tr>
<tr class="memdesc:ab97d83e7b02ae3da2ce2b862d4e59820"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method: get the child at the specified index. Note that if you plan on calling this function more than once, it's faster to get the entire list using <a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884" title="Get the current list of the grid&#39;s children. ">GetChildList()</a> instead.  <a href="#ab97d83e7b02ae3da2ce2b862d4e59820">More...</a><br /></td></tr>
<tr class="separator:ab97d83e7b02ae3da2ce2b862d4e59820"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3782aee63413156251782f791864b26e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a3782aee63413156251782f791864b26e">GetIndex</a> (Transform trans)</td></tr>
<tr class="memdesc:a3782aee63413156251782f791864b26e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the index of the specified item.  <a href="#a3782aee63413156251782f791864b26e">More...</a><br /></td></tr>
<tr class="separator:a3782aee63413156251782f791864b26e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a346abe09224fa9c1747a6044a25512"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a4a346abe09224fa9c1747a6044a25512">AddChild</a> (Transform trans)</td></tr>
<tr class="memdesc:a4a346abe09224fa9c1747a6044a25512"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method &ndash; add a new child.  <a href="#a4a346abe09224fa9c1747a6044a25512">More...</a><br /></td></tr>
<tr class="separator:a4a346abe09224fa9c1747a6044a25512"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a784c992fe0d6991754d7d101cbaa208f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a784c992fe0d6991754d7d101cbaa208f">AddChild</a> (Transform trans, bool sort)</td></tr>
<tr class="memdesc:a784c992fe0d6991754d7d101cbaa208f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience method &ndash; add a new child. Note that if you plan on adding multiple objects, it's faster to <a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884" title="Get the current list of the grid&#39;s children. ">GetChildList()</a> and modify that instead.  <a href="#a784c992fe0d6991754d7d101cbaa208f">More...</a><br /></td></tr>
<tr class="separator:a784c992fe0d6991754d7d101cbaa208f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a209f01e91431f8c1e59dc7f6f449715e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a209f01e91431f8c1e59dc7f6f449715e">RemoveChild</a> (Transform t)</td></tr>
<tr class="memdesc:a209f01e91431f8c1e59dc7f6f449715e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the specified child from the list. Note that if you plan on removing multiple objects, it's faster to <a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884" title="Get the current list of the grid&#39;s children. ">GetChildList()</a> and modify that instead.  <a href="#a209f01e91431f8c1e59dc7f6f449715e">More...</a><br /></td></tr>
<tr class="separator:a209f01e91431f8c1e59dc7f6f449715e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1044836575a030e2288c3400453cef9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#af1044836575a030e2288c3400453cef9">Reposition</a> ()</td></tr>
<tr class="memdesc:af1044836575a030e2288c3400453cef9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recalculate the position of all elements within the grid, sorting them alphabetically if necessary.  <a href="#af1044836575a030e2288c3400453cef9">More...</a><br /></td></tr>
<tr class="separator:af1044836575a030e2288c3400453cef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9062e25c6c408f22a7a45326a07669"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#aac9062e25c6c408f22a7a45326a07669">ConstrainWithinPanel</a> ()</td></tr>
<tr class="memdesc:aac9062e25c6c408f22a7a45326a07669"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constrain the grid's content to be within the panel's bounds.  <a href="#aac9062e25c6c408f22a7a45326a07669">More...</a><br /></td></tr>
<tr class="separator:aac9062e25c6c408f22a7a45326a07669"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6ba3969030af216412c673b543b4310b"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a6ba3969030af216412c673b543b4310b">SortByName</a> (Transform a, Transform b)</td></tr>
<tr class="separator:a6ba3969030af216412c673b543b4310b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a86d011ea6daff56094bf29ac530474"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a3a86d011ea6daff56094bf29ac530474">SortHorizontal</a> (Transform a, Transform b)</td></tr>
<tr class="separator:a3a86d011ea6daff56094bf29ac530474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acffd92c4bba4010606330d62264e6952"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#acffd92c4bba4010606330d62264e6952">SortVertical</a> (Transform a, Transform b)</td></tr>
<tr class="separator:acffd92c4bba4010606330d62264e6952"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a875ea291d94baab4576057e89ec6facc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_grid.html#a3b71e32581492ef6f5a1bd7e34e46b24">Arrangement</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a875ea291d94baab4576057e89ec6facc">arrangement</a> = Arrangement.Horizontal</td></tr>
<tr class="memdesc:a875ea291d94baab4576057e89ec6facc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Type of arrangement &ndash; vertical or horizontal.  <a href="#a875ea291d94baab4576057e89ec6facc">More...</a><br /></td></tr>
<tr class="separator:a875ea291d94baab4576057e89ec6facc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8e5f90a9d3fbd268289665357658db4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796">Sorting</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#ae8e5f90a9d3fbd268289665357658db4">sorting</a> = Sorting.None</td></tr>
<tr class="memdesc:ae8e5f90a9d3fbd268289665357658db4"><td class="mdescLeft">&#160;</td><td class="mdescRight">How to sort the grid's elements.  <a href="#ae8e5f90a9d3fbd268289665357658db4">More...</a><br /></td></tr>
<tr class="separator:ae8e5f90a9d3fbd268289665357658db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adddf128513f4196e3ba7926ba04d643a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_widget.html#a596c5570fff0afa9f4c1930e0965fb22">UIWidget.Pivot</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#adddf128513f4196e3ba7926ba04d643a">pivot</a> = UIWidget.Pivot.TopLeft</td></tr>
<tr class="memdesc:adddf128513f4196e3ba7926ba04d643a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Final pivot point for the grid's content.  <a href="#adddf128513f4196e3ba7926ba04d643a">More...</a><br /></td></tr>
<tr class="separator:adddf128513f4196e3ba7926ba04d643a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34cf8399162d39d9eb116fe9f8755297"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a34cf8399162d39d9eb116fe9f8755297">maxPerLine</a> = 0</td></tr>
<tr class="memdesc:a34cf8399162d39d9eb116fe9f8755297"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum children per line. If the arrangement is horizontal, this denotes the number of columns. If the arrangement is vertical, this stands for the number of rows.  <a href="#a34cf8399162d39d9eb116fe9f8755297">More...</a><br /></td></tr>
<tr class="separator:a34cf8399162d39d9eb116fe9f8755297"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a174565a635af0e79e3ab92b4034a2a90"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a174565a635af0e79e3ab92b4034a2a90">cellWidth</a> = 200f</td></tr>
<tr class="memdesc:a174565a635af0e79e3ab92b4034a2a90"><td class="mdescLeft">&#160;</td><td class="mdescRight">The width of each of the cells.  <a href="#a174565a635af0e79e3ab92b4034a2a90">More...</a><br /></td></tr>
<tr class="separator:a174565a635af0e79e3ab92b4034a2a90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5331183786e7173d683ffd1eb152c1e8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a5331183786e7173d683ffd1eb152c1e8">cellHeight</a> = 200f</td></tr>
<tr class="memdesc:a5331183786e7173d683ffd1eb152c1e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The height of each of the cells.  <a href="#a5331183786e7173d683ffd1eb152c1e8">More...</a><br /></td></tr>
<tr class="separator:a5331183786e7173d683ffd1eb152c1e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed1513d26798613e7959e4cf5b15a1bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#aed1513d26798613e7959e4cf5b15a1bf">animateSmoothly</a> = false</td></tr>
<tr class="memdesc:aed1513d26798613e7959e4cf5b15a1bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the grid will smoothly animate its children into the correct place.  <a href="#aed1513d26798613e7959e4cf5b15a1bf">More...</a><br /></td></tr>
<tr class="separator:aed1513d26798613e7959e4cf5b15a1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafca11164cc1eaef86b05d00d8a91e0b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#aafca11164cc1eaef86b05d00d8a91e0b">hideInactive</a> = true</td></tr>
<tr class="memdesc:aafca11164cc1eaef86b05d00d8a91e0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether to ignore the disabled children or to treat them as being present.  <a href="#aafca11164cc1eaef86b05d00d8a91e0b">More...</a><br /></td></tr>
<tr class="separator:aafca11164cc1eaef86b05d00d8a91e0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8df12dc7a09c759a9efc88182694c1a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#ad8df12dc7a09c759a9efc88182694c1a">keepWithinPanel</a> = false</td></tr>
<tr class="memdesc:ad8df12dc7a09c759a9efc88182694c1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the parent container will be notified of the grid's changes.  <a href="#ad8df12dc7a09c759a9efc88182694c1a">More...</a><br /></td></tr>
<tr class="separator:ad8df12dc7a09c759a9efc88182694c1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1097504c97de1a3b6cf370abb0cfaf4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_grid.html#afd5f67e31f55ade10f2672e21db6e29d">OnReposition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#aa1097504c97de1a3b6cf370abb0cfaf4">onReposition</a></td></tr>
<tr class="memdesc:aa1097504c97de1a3b6cf370abb0cfaf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback triggered when the grid repositions its contents.  <a href="#aa1097504c97de1a3b6cf370abb0cfaf4">More...</a><br /></td></tr>
<tr class="separator:aa1097504c97de1a3b6cf370abb0cfaf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e7b3689bbc3eaf6910f73709a7c77fe"><td class="memItemLeft" align="right" valign="top">System.Comparison&lt; Transform &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a9e7b3689bbc3eaf6910f73709a7c77fe">onCustomSort</a></td></tr>
<tr class="memdesc:a9e7b3689bbc3eaf6910f73709a7c77fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Custom sort delegate, used when the sorting method is set to 'custom'.  <a href="#a9e7b3689bbc3eaf6910f73709a7c77fe">More...</a><br /></td></tr>
<tr class="separator:a9e7b3689bbc3eaf6910f73709a7c77fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aa3b3b2703dcc371091953053ca179640"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#aa3b3b2703dcc371091953053ca179640">Init</a> ()</td></tr>
<tr class="memdesc:aa3b3b2703dcc371091953053ca179640"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the grid. Executed only once.  <a href="#aa3b3b2703dcc371091953053ca179640">More...</a><br /></td></tr>
<tr class="separator:aa3b3b2703dcc371091953053ca179640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e163692d8b37b83a50de64f0b4c7d8c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a5e163692d8b37b83a50de64f0b4c7d8c">Start</a> ()</td></tr>
<tr class="memdesc:a5e163692d8b37b83a50de64f0b4c7d8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cache everything and reset the initial position of all children.  <a href="#a5e163692d8b37b83a50de64f0b4c7d8c">More...</a><br /></td></tr>
<tr class="separator:a5e163692d8b37b83a50de64f0b4c7d8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76bf0476b0f509aa676508b9c36ea71d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a76bf0476b0f509aa676508b9c36ea71d">Update</a> ()</td></tr>
<tr class="memdesc:a76bf0476b0f509aa676508b9c36ea71d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the position if necessary, then disable the component.  <a href="#a76bf0476b0f509aa676508b9c36ea71d">More...</a><br /></td></tr>
<tr class="separator:a76bf0476b0f509aa676508b9c36ea71d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af75c589e32f97d930470bbde23da8932"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#af75c589e32f97d930470bbde23da8932">Sort</a> (List&lt; Transform &gt; list)</td></tr>
<tr class="memdesc:af75c589e32f97d930470bbde23da8932"><td class="mdescLeft">&#160;</td><td class="mdescRight">You can override this function, but in most cases it's easier to just set the onCustomSort delegate instead.  <a href="#af75c589e32f97d930470bbde23da8932">More...</a><br /></td></tr>
<tr class="separator:af75c589e32f97d930470bbde23da8932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2f73ea6cb7f75d50cb7495644669dfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#ad2f73ea6cb7f75d50cb7495644669dfd">ResetPosition</a> (List&lt; Transform &gt; list)</td></tr>
<tr class="memdesc:ad2f73ea6cb7f75d50cb7495644669dfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the position of all child objects based on the order of items in the list.  <a href="#ad2f73ea6cb7f75d50cb7495644669dfd">More...</a><br /></td></tr>
<tr class="separator:ad2f73ea6cb7f75d50cb7495644669dfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a55d2471dd8e0021fdab0b9c0201f6224"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a55d2471dd8e0021fdab0b9c0201f6224">mReposition</a> = false</td></tr>
<tr class="separator:a55d2471dd8e0021fdab0b9c0201f6224"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7250220b98fac044a2ef824e2a8031e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_panel.html">UIPanel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#ad7250220b98fac044a2ef824e2a8031e">mPanel</a></td></tr>
<tr class="separator:ad7250220b98fac044a2ef824e2a8031e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40e05d7f472a7c8713eb5966324d9858"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a40e05d7f472a7c8713eb5966324d9858">mInitDone</a> = false</td></tr>
<tr class="separator:a40e05d7f472a7c8713eb5966324d9858"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a5c68769763ce8fb497edd3bba07c95ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_grid.html#a5c68769763ce8fb497edd3bba07c95ee">repositionNow</a><code> [set]</code></td></tr>
<tr class="memdesc:a5c68769763ce8fb497edd3bba07c95ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reposition the children on the next <a class="el" href="class_u_i_grid.html#a76bf0476b0f509aa676508b9c36ea71d" title="Reset the position if necessary, then disable the component. ">Update()</a>.  <a href="#a5c68769763ce8fb497edd3bba07c95ee">More...</a><br /></td></tr>
<tr class="separator:a5c68769763ce8fb497edd3bba07c95ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>All children added to the game object with this script will be repositioned to be on a grid of specified dimensions. If you want the cells to automatically set their scale based on the dimensions of their content, take a look at <a class="el" href="class_u_i_table.html" title="All children added to the game object with this script will be arranged into a table with rows and co...">UITable</a>. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a class="anchor" id="a3b71e32581492ef6f5a1bd7e34e46b24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_u_i_grid.html#a3b71e32581492ef6f5a1bd7e34e46b24">UIGrid.Arrangement</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a3b71e32581492ef6f5a1bd7e34e46b24ac1b5fa03ecdb95d4a45dd1c40b02527f"></a>Horizontal&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a3b71e32581492ef6f5a1bd7e34e46b24a06ce2a25e5d12c166a36f654dbea6012"></a>Vertical&#160;</td><td class="fielddoc">
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ac8c51989159e70c9606e2191c70e4796"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796">UIGrid.Sorting</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ac8c51989159e70c9606e2191c70e4796a6adf97f83acf6453d4a6a4b1070f3754"></a>None&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac8c51989159e70c9606e2191c70e4796ae126411ef594e6c55711275a03d03ea2"></a>Alphabetic&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac8c51989159e70c9606e2191c70e4796ac1b5fa03ecdb95d4a45dd1c40b02527f"></a>Horizontal&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac8c51989159e70c9606e2191c70e4796a06ce2a25e5d12c166a36f654dbea6012"></a>Vertical&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ac8c51989159e70c9606e2191c70e4796a90589c47f06eb971d548591f23c285af"></a>Custom&#160;</td><td class="fielddoc">
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4a346abe09224fa9c1747a6044a25512"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIGrid.AddChild </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>trans</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience method &ndash; add a new child. </p>

</div>
</div>
<a class="anchor" id="a784c992fe0d6991754d7d101cbaa208f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIGrid.AddChild </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>trans</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sort</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience method &ndash; add a new child. Note that if you plan on adding multiple objects, it's faster to <a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884" title="Get the current list of the grid&#39;s children. ">GetChildList()</a> and modify that instead. </p>

</div>
</div>
<a class="anchor" id="aac9062e25c6c408f22a7a45326a07669"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIGrid.ConstrainWithinPanel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constrain the grid's content to be within the panel's bounds. </p>

</div>
</div>
<a class="anchor" id="ab97d83e7b02ae3da2ce2b862d4e59820"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Transform UIGrid.GetChild </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience method: get the child at the specified index. Note that if you plan on calling this function more than once, it's faster to get the entire list using <a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884" title="Get the current list of the grid&#39;s children. ">GetChildList()</a> instead. </p>

</div>
</div>
<a class="anchor" id="a2443158a661536abc8120f6cfd920884"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;Transform&gt; UIGrid.GetChildList </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current list of the grid's children. </p>

</div>
</div>
<a class="anchor" id="a3782aee63413156251782f791864b26e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UIGrid.GetIndex </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>trans</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the index of the specified item. </p>

</div>
</div>
<a class="anchor" id="aa3b3b2703dcc371091953053ca179640"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIGrid.Init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initialize the grid. Executed only once. </p>

</div>
</div>
<a class="anchor" id="afd5f67e31f55ade10f2672e21db6e29d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delegate void UIGrid.OnReposition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a209f01e91431f8c1e59dc7f6f449715e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.RemoveChild </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove the specified child from the list. Note that if you plan on removing multiple objects, it's faster to <a class="el" href="class_u_i_grid.html#a2443158a661536abc8120f6cfd920884" title="Get the current list of the grid&#39;s children. ">GetChildList()</a> and modify that instead. </p>

</div>
</div>
<a class="anchor" id="af1044836575a030e2288c3400453cef9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIGrid.Reposition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Recalculate the position of all elements within the grid, sorting them alphabetically if necessary. </p>

</div>
</div>
<a class="anchor" id="ad2f73ea6cb7f75d50cb7495644669dfd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void UIGrid.ResetPosition </td>
          <td>(</td>
          <td class="paramtype">List&lt; Transform &gt;&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reset the position of all child objects based on the order of items in the list. </p>

</div>
</div>
<a class="anchor" id="af75c589e32f97d930470bbde23da8932"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIGrid.Sort </td>
          <td>(</td>
          <td class="paramtype">List&lt; Transform &gt;&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>You can override this function, but in most cases it's easier to just set the onCustomSort delegate instead. </p>

</div>
</div>
<a class="anchor" id="a6ba3969030af216412c673b543b4310b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int UIGrid.SortByName </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3a86d011ea6daff56094bf29ac530474"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int UIGrid.SortHorizontal </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acffd92c4bba4010606330d62264e6952"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int UIGrid.SortVertical </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5e163692d8b37b83a50de64f0b4c7d8c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIGrid.Start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cache everything and reset the initial position of all children. </p>

</div>
</div>
<a class="anchor" id="a76bf0476b0f509aa676508b9c36ea71d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIGrid.Update </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reset the position if necessary, then disable the component. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aed1513d26798613e7959e4cf5b15a1bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.animateSmoothly = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the grid will smoothly animate its children into the correct place. </p>

</div>
</div>
<a class="anchor" id="a875ea291d94baab4576057e89ec6facc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_grid.html#a3b71e32581492ef6f5a1bd7e34e46b24">Arrangement</a> UIGrid.arrangement = Arrangement.Horizontal</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Type of arrangement &ndash; vertical or horizontal. </p>

</div>
</div>
<a class="anchor" id="a5331183786e7173d683ffd1eb152c1e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float UIGrid.cellHeight = 200f</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The height of each of the cells. </p>

</div>
</div>
<a class="anchor" id="a174565a635af0e79e3ab92b4034a2a90"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float UIGrid.cellWidth = 200f</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The width of each of the cells. </p>

</div>
</div>
<a class="anchor" id="aafca11164cc1eaef86b05d00d8a91e0b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.hideInactive = true</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether to ignore the disabled children or to treat them as being present. </p>

</div>
</div>
<a class="anchor" id="ad8df12dc7a09c759a9efc88182694c1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.keepWithinPanel = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the parent container will be notified of the grid's changes. </p>

</div>
</div>
<a class="anchor" id="a34cf8399162d39d9eb116fe9f8755297"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UIGrid.maxPerLine = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum children per line. If the arrangement is horizontal, this denotes the number of columns. If the arrangement is vertical, this stands for the number of rows. </p>

</div>
</div>
<a class="anchor" id="a40e05d7f472a7c8713eb5966324d9858"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.mInitDone = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad7250220b98fac044a2ef824e2a8031e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_panel.html">UIPanel</a> UIGrid.mPanel</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a55d2471dd8e0021fdab0b9c0201f6224"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.mReposition = false</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9e7b3689bbc3eaf6910f73709a7c77fe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">System.Comparison&lt;Transform&gt; UIGrid.onCustomSort</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Custom sort delegate, used when the sorting method is set to 'custom'. </p>

</div>
</div>
<a class="anchor" id="aa1097504c97de1a3b6cf370abb0cfaf4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_grid.html#afd5f67e31f55ade10f2672e21db6e29d">OnReposition</a> UIGrid.onReposition</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback triggered when the grid repositions its contents. </p>

</div>
</div>
<a class="anchor" id="adddf128513f4196e3ba7926ba04d643a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_widget.html#a596c5570fff0afa9f4c1930e0965fb22">UIWidget.Pivot</a> UIGrid.pivot = UIWidget.Pivot.TopLeft</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Final pivot point for the grid's content. </p>

</div>
</div>
<a class="anchor" id="ae8e5f90a9d3fbd268289665357658db4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_grid.html#ac8c51989159e70c9606e2191c70e4796">Sorting</a> UIGrid.sorting = Sorting.None</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>How to sort the grid's elements. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a5c68769763ce8fb497edd3bba07c95ee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UIGrid.repositionNow</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reposition the children on the next <a class="el" href="class_u_i_grid.html#a76bf0476b0f509aa676508b9c36ea71d" title="Reset the position if necessary, then disable the component. ">Update()</a>. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/NGUI/Assets/NGUI/Scripts/Interaction/<a class="el" href="_u_i_grid_8cs.html">UIGrid.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_u_i_grid.html">UIGrid</a></li>
    <li class="footer">Generated on Sat Sep 13 2014 05:29:18 for NGUI: Next-Gen UI kit by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
